Skip to main content

mobileSetRemoteControlDisplay

Type

command

Summary

Configures the information displayed on the remote control device, or on the (locked) home screen controls.

Syntax

mobileSetRemoteControlDisplay <displayData>

Description

Use the mobileSetRemoteControlDisplay command to configure the information displayed on the (locked) home screen controls, or the remote control device (iOS) or the notification (android).

On iOS, the remote control feature allows access to the audio controls both on an external device and also on the device itself when in lockscreen.

On android, the remote control feature allows access to audio controls on a notification, lockscreen and hardware buttons. This requires the Foreground Service permission to be enabled in the standalone settings.

note

There is no guarantee that any of this information will be used, it is up to the remote control device / iOS / android to decide.

note

The value of the state key controls whether the seekbar updates or which buttons are displayed.

Parameters

NameTypeDescription

displayData

array

An array with one or more of the following keys:

  • "title": string
  • "artist": string
  • "artwork": Either the text of an image or an image filename.
  • "composer": string
  • "genre": string
  • "album title": string
  • "album track count": number
  • "album track number": number
  • "disk number": number
  • "chapter count": number
  • "chapter number": number
  • "playback duration": number
  • "elapsed playback time": number
  • "playback rate": number
  • "state": "play"/"pause"/"stop" (android only)
  • "disk count": number (iOS only)
  • "playback queue index": number (iOS only)
  • "playback queue count": number (iOS only)

Examples

mobileSetRemoteControlDisplay pDisplayDataArray

command: mobileEnableRemoteControl, mobileDisableRemoteControl

function: mobileRemoteControlEnabled

message: remoteControlReceived

Compatibility and Support

Introduced

LiveCode 10.0

OS

android

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?